package com.example.live.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.live.R
import com.example.live.entity.ShareEntity

class ShareAdapter  (data:MutableList<ShareEntity>): BaseQuickAdapter<ShareEntity, BaseViewHolder>(R.layout.item_share,data) {
    override fun convert(holder: BaseViewHolder, item: ShareEntity) {
        Glide.with(holder.itemView).load(item.icon).circleCrop().into(holder.getView(R.id.share_icon))
        holder.setText(R.id.share_name,item.name)
    }
}